package com.example.shirodemo.mapper;

import com.example.shirodemo.entity.SRole;
import java.util.Set;
import org.apache.ibatis.annotations.Param;import java.util.List;

/**
 * @Author 绫小路
 * @Date 2021/1/15
 */

public interface SRoleMapper {
  int deleteByPrimaryKey(Integer id);

  int insertSelective(SRole record);

  SRole selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SRole record);


  Set<String> getRoles(@Param("username") String username);

  List<SRole> getRoleLists(@Param("search") String search);

  SRole get(@Param("name") String name, @Param("status") int status);

  void delete(String name);

  void update(@Param("id") int id, @Param("name") String name, @Param("description") String description);
}
